package com.party.core.model.mall;

/**
 * 展示商品查询
 * Created by wei.li
 *
 * @date 2017/8/25 0025
 * @time 18:29
 */
public class MallShowSubjectQuery extends MallShowSubject {

    //开始时间
    private String createStart;

    //结束时间
    private String createEnd;

    //时间类型
    private Integer timeType;

    // 机构名称
    private String memberName;

    public String getCreateStart() {
        return createStart;
    }

    public void setCreateStart(String createStart) {
        this.createStart = createStart;
    }

    public String getCreateEnd() {
        return createEnd;
    }

    public void setCreateEnd(String createEnd) {
        this.createEnd = createEnd;
    }

    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        MallShowSubjectQuery that = (MallShowSubjectQuery) o;

        if (createStart != null ? !createStart.equals(that.createStart) : that.createStart != null) return false;
        if (createEnd != null ? !createEnd.equals(that.createEnd) : that.createEnd != null) return false;
        return timeType != null ? timeType.equals(that.timeType) : that.timeType == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (createStart != null ? createStart.hashCode() : 0);
        result = 31 * result + (createEnd != null ? createEnd.hashCode() : 0);
        result = 31 * result + (timeType != null ? timeType.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "MallShowSubjectQuery{" +
                "createStart='" + createStart + '\'' +
                ", createEnd='" + createEnd + '\'' +
                ", timeType=" + timeType +
                '}';
    }
}
